package org.adultedu.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult<T> {
    public static int NEED_RE_LOGIN = 1;
    public static int NEED_RETRY = 2;

    private int errCode;

    private int code;

    private String message;

    private String timestamp = ConcurrentDateUtil.format(new Date());

    private T data;
}